package com.ww.springboot.boot.test;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * todo
 *
 * @author wanwei
 * @since 2022-03-17 14:43
 */
@Data
public class CneTraceResp implements Serializable {

	@JsonProperty(value = "ReturnValue")
	private int returnValue;
	@JsonProperty(value = "Response_Info")
	private ResponseInfoBean responseInfo;
	@JsonProperty(value = "Extra_Header")
	private String extraHeader;
	private List<TrackingEventListBean> trackingEventList;

	@Data
	public static class ResponseInfoBean implements Serializable {

		private String trackingNbr;
		private String status;
		private String deliveryDate;
		private String signature;
		@JsonProperty(value = "Number_t")
		private String numberT;
		@JsonProperty(value = "Destination")
		private String destination;
	}

	@Data
	public static class TrackingEventListBean implements Serializable {
		private String date;
		private String place;
		private String details;
		private int state;
		private Object standardTrackEventCode;
		private String standardTrackEventZhDesc;
		private String standardTrackEventEnDesc;
		private String mainEventName;
		private int mainEventCode;
		private String subEventName;
		private int subEventCode;
	}
}
